#include"CRectangle.h"
 
int main(){
	CRectangle recta;
	recta.SetValues(3, 4);
	CRectangle *rectb;
	rectb = &recta;
	rectb->SetValues(3, 9);
	cout << "area: " << recta.area();
	cout << "area: " << rectb->area();
	CRectangle *rectc = new CRectangle;
	rectc->SetValues(5, 6);
	rectb = rectc;
	rectc->SetValues(7, 8);
	cout << "area: " << rectb->area();
	cout << "area: " << rectc->area();
	delete rectb;
	_getch();
	return 0;

}